package com.lmx.repoDomain.tmodel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import io.katharsis.resource.annotations.JsonApiResource;

/*
 *省表
*/
@JsonApiResource(type = "province")
@Table(name = "t_s_province")
@Entity
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class Province extends BaseEntity {

	private String remark;// 备注

	private String name;

	// private List<City> cities;
	//
	// @Transient
	// @JsonApiToMany
	// @JsonApiIncludeByDefault
	// public List<City> getFloors() {
	// return cities;
	// }
	//
	// public void setFloors(List<City> cities) {
	// this.cities = cities;
	// }

	@Column(name = "province_name")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Province() {
	}

	@Column(name = "remark")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}
